#include <stdio.h>
int main()
{
    int digit = 0, blank = 0, other = 0;
    char c;
    c = getchar();
    while(c != '\n')
    {
        if(c == ' ')
        {
            blank++;
        }else if('0' <= c && c <= '9')
        {
            digit++;
        }else
        {
            other++;
        }
        c = getchar();
    }
    printf("blank = %d, digit = %d, other = %d", blank, digit, other);
    return 0;
}